<div class="funcarea">
	<label>参数名</label>
	<select id="searchCondition">
	<option value="deployId">发布ID</option>
	
			
			
			
					<option value="catalog">目录</option>	
			
					<option value="type">分类</option>	
			
			
			
			
					<option value="nextCardId">下一个图鉴</option>	
			
					<option value="cardres">资源SWF</option>	
				</select>
	<label>参数值</label>
	<input type="text" id="searchValue"/>
	<a href="javascript:void(0)" onclick="searchcard()">查询</a>
	<a href="javascript:void(0)" onclick="document.location.reload()">刷新</a>
	<a href="javascript:void(0)" onclick="promptAdd()">增加</a>
	<a href="javascript:void(0)" onclick="promptExport()">导出</a>
	<a href="javascript:void(0)" onclick="extract()">转换图鉴数据</a>
	<a href="javascript:void(0)" onclick="publish()">发布图鉴</a>
</div>
{% if pageLength > 1 %}
<center>
	<br/>
	{% if pageIndex > 1 %}
	<a href="javascript:void(0)" onclick="showMore({{pageIndex}} - 1)">上一页</a>
	{% endif %}
	<a href="javascript:void(0)" disabled>第{{pageIndex}}/{{pageLength}}页</a>
	{% if pageIndex < pageLength %}
	<a href="javascript:void(0)" onclick="showMore({{pageIndex}} + 1)">下一页</a>
	{% endif %}
	<a href="javascript:void(0)" onclick="go2Page()">跳至</a>第
	<input type="text" size="2" id="pageValue" value="{{pageIndex}}"/>页
	<br/>
</center>
{% endif %}
<div class="dataarea">
	<table>
		<thead>
			<tr>
			<th nowrap>发布ID</th>
			
				<th nowrap>名字</th>
			
				<th nowrap>描述</th>
			
				<th nowrap>模块</th>
			
				<th nowrap>目录</th>
			
				<th nowrap>分类</th>
			
				<th nowrap>边框颜色</th>
			
				<th nowrap>奖励</th>
			
				<th nowrap>完成条件</th>
			
				<th nowrap>下一个图鉴</th>
			
				<th nowrap>资源SWF</th>
							<th nowrap class="operator">----------操作---------</th>
			</tr>
		</thead>
		<tbody>
		{% for card in cards %}
			<tr id="row_{{ card.id }}">
				<td><a href="javascript:void(0)" onclick="promptMenu({{ card.id }})">{{ card.deployId }}</a></td>
				
					
						<td>{{ card.name }}</td>
									
					
						<td>{{ card.desc }}</td>
									
											<td>
							<select disabled>
																
									<option value="1" {% ifequal 1 card.module %}selected="selected"{% endifequal %}>成就图鉴</option>
								
									<option value="2" {% ifequal 2 card.module %}selected="selected"{% endifequal %}>英雄图鉴</option>
								
									<option value="3" {% ifequal 3 card.module %}selected="selected"{% endifequal %}>装备图鉴</option>
								
									<option value="4" {% ifequal 4 card.module %}selected="selected"{% endifequal %}>剧情图鉴</option>
															</select>
						</td>
									
					
						<td>{{ card.catalog }}</td>
									
					
						<td>{{ card.type }}</td>
									
											<td>
							<select disabled>
																
									<option value="1" {% ifequal 1 card.quality %}selected="selected"{% endifequal %}>黑色</option>
								
									<option value="2" {% ifequal 2 card.quality %}selected="selected"{% endifequal %}>银色</option>
								
									<option value="3" {% ifequal 3 card.quality %}selected="selected"{% endifequal %}>金色</option>
								
									<option value="4" {% ifequal 4 card.quality %}selected="selected"{% endifequal %}>彩色</option>
															</select>
						</td>
									
					
						<td>{{ card.award }}</td>
									
					
						<td>{{ card.condition }}</td>
									
					
						<td>{{ card.nextCardId }}</td>
									
					
						<td>{{ card.cardres }}</td>
													<td class="operator">
					<a href="javascript:editcard({{ card.id }})">编辑</a>
					<a href="javascript:removecard({{ card.id }})">删除</a>
					<a href="javascript:showcard({{ card.id }})">显示JSON</a>
				</td>
			</tr>
		{% endfor %}
		</tbody>
	</table>
</div>
{% if pageLength > 1 %}
<center>
	<br/>
	{% if pageIndex > 1 %}
	<a href="javascript:void(0)" onclick="showMore({{pageIndex}} - 1)">上一页</a>
	{% endif %}
	<a href="javascript:void(0)" disabled>第{{pageIndex}}/{{pageLength}}页</a>
	{% if pageIndex < pageLength %}
	<a href="javascript:void(0)" onclick="showMore({{pageIndex}} + 1)">下一页</a>
	{% endif %}
	<a href="javascript:void(0)" onclick="go2Page()">跳至</a>第
	<input type="text" size="2" id="pageValue" value="{{pageIndex}}"/>页
	<br/>
</center>
{% endif %}
